const template = require('art-template')
const path = require('path')

const filepath = path.join(__dirname, '03.art')

const html = template(filepath, {
    userList : [
        {
            name: '张三',
            age: 22,
            gender: '男'
            
        },{
            name: 'Marry',
            age: 20,
            gender: '女'
            
        },{
            name: 'Tom',
            age: 18,
            gender: '男'
            
        },
    ]
})

console.log(html)